package org.mybatis3.demo1.dao;

import org.apache.ibatis.annotations.Param;
import org.mybatis3.demo1.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    User getOneUser(Integer dd);
    List<User> searchUser(@Param("userName") String userName, @Param("userRole") Long userRole);
    List<User> searchUser2(@Param("userName") String userName, @Param("userRole") Long userRole);
    List<User> searchUserByMap(Map<String,String> map);
    List<User> getUserList();
    int save (User user);
    int delete(Integer id);
    List<User> getUserAndRoleName();
    List<User> getuserAndRole();
    List<User> getUsersAndAddress();

    List<User> getUsersByRole(List<Long> ids);
    List<User> getUsersByRoleAndUserName(Map<String,Object> map);
}
